<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .box {
            width: 300px;
            height: 200px;
            margin: auto;
            border: 1px solid #333;
        }

        .box1 {
            width: 100px;
            height: 100px;
            background: red;
            float: right;
        }

        .box2 {
            width: 100px;
            height: 100px;
            background: green;
            float: right;
        }
        .clear{
            clear: both;
        }
        /* .box:hover .box2{
            float: none;
        } */

        /* float: left; float: right; float: none;
        
        清除浮动 clear:both;（在产生影响的盒子的结束符前面加）
        清除浮动必须加在块状元素标签中


        块状元素必须水平排列时 才加浮动

        加了浮动的块状元素，如果没有设置固定宽度，内容来决定宽度
        */

        .service{
            width: 900px;
            height: 83px;
            margin:20px auto;
            border: 1px solid #333;
            padding-top: 37px;
        }
        .service ul li{
            float: left;
            border-right: 1px solid #ccc;
            padding-right: 20px;
            margin-right: 20px;
        }
        /* .service ul li:nth-child(4){
            border-right: none;
        } */
        .service ul li:last-child{
            border-right: none;
        }
        .service ul li img{
            float: left;
        }
        .service ul li .text_title{
            float: left;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box2">123</div>
        <!-- <div class="clear"></div> -->
    </div>


    <div class="service">
        <ul>
            <li>
                <img src="img/1_04.jpg" alt="">
                <div class="text_title">
                    <h3>环球时尚&nbsp;&nbsp;梦想成真</h3>
                    <p>全明星时代</p>
                </div>
            </li>
            <li>
                <img src="img/1_05.jpg" alt="">
                <div class="text_title">
                    <h3>7天无条件退换</h3>
                    <p>全明星时代</p>
                </div>
            </li>
            <li>
                <img src="img/1_07.jpg" alt="">
                <div class="text_title">
                    <h3>1800个城市</h3>
                    <p>全明星时代</p>
                </div>
            </li>
            <li>
                <img src="img/1_09.jpg" alt="">
                <div class="text_title">
                    <h3>国内满180元免运费</h3>
                    <p>全明星时代</p>
                </div>
            </li>
        </ul>
    </div>
</body>

</html>